package task1;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import org.apache.log4j.Logger;
 
@XmlRootElement
public class XMLTemplate {
	
	private static final Logger logger = Logger.getLogger(XMLTemplate.class);
	
	private String template;

	@XmlElement
	public void setTemplate(String template) {
		this.template = template;
		logger.info("XMLTemplate.setTemplate() method");
	}
	
	public String getTemplate() {
		logger.info("XMLTemplate.getTemplate() method");
		return template;
	}
	
	@Override
	public String toString() {
		logger.info("XMLTemplate.toString() method");
		return template;
	}
  
}